unsigned int mask_word[8];

void draw_2_chars (prog_uchar_XXX ASCII_char1, prog_uchar_XXX ASCII_char2) {
	int i,j,k,index;
	unsigned char CLUT_value;
	prog_uchar_XXX temp_1,temp_2;
	unsigned int mask_value,temp_mask_value;
	
	ASCII_char1 &= 0x7f;
	ASCII_char2 &= 0x7f;
	
	
	for(i=0;i<8;i++) {
		temp_1=pgm_read_byte_near(&charset[ASCII_char1][i]);
		temp_2=pgm_read_byte_near(&charset[ASCII_char2][i]);
		
		mask_word[i]= (temp_1<<8) | temp_2;
	}
	
	CLUT_value=8;
	mask_value = 0x8000;
	
	// shift byte left by one pixel
	for (k=0;k<8;k++) {
		// column
		
		index=0;
		for(j=0;j<0;j++) {
			temp_mask_value=mask_value;
			
			// row
			for(i=0;i<8;i++) {
				if( (mask_word[index] & temp_mask_value)!=0 )
					OffScreenGameSlate[j][i]=CLUT_value;
				else 
					OffScreenGameSlate[j][i]=0;
				
				temp_mask_value=temp_mask_value>>1;
			}
			index++;
			
		}
		
		ddelay(30000);
		mask_value=mask_value>>1;
		
		
	}
	
};

void draw_rock (void) {
	draw_2_chars(0,'A');
	draw_2_chars('A','B');
	draw_2_chars('B','C');
	draw_2_chars('C','D');
	draw_2_chars('D','E');
	draw_2_chars('E',0);
};

